package com.util;

import javafx.scene.image.Image;
import javafx.scene.image.PixelReader;
import javafx.scene.paint.Color;

public class ReadColor {
    public static Color getColor(Image image,int x,int y){
        PixelReader pixelReader = image.getPixelReader();
        Color color = pixelReader.getColor(x, y);
        //System.out.println(color.toString());
        return color;
    }
}
